#include "stdafx.h"
#include "Commonwinsock.h"

WSADATA winsock::m_wsa;

winsock::winsock()
{
	WSAStartup(MAKEWORD (2, 2), &m_wsa);
}

winsock::~winsock()
{
	WSACleanup();
}

int winsock::GetErrorCode(void)
{		
	return	WSAGetLastError();
}

winsock StartUP;